/*
 *  Document   : index.js
 */
var indexWeb = function () {
    var $banner = $('.tp-banner'),
        $brands = $('.brands'),
        $most_sold = $("#most-solded"),
        $last_items = $("#last-items"),
        $lazy = $(".lazyLoad");

    /* Initialization slide */
    var initSlider = function () {

        $banner.revolution({
            startwidth: 1170,
            startheight: 550,
            autoHeight: "off",
            navigationType: "none",
            hideThumbs: 10,
            fullWidth: "on",
            fullScreen: "off",
            fullScreenOffsetContainer: ""
        });

        $brands.owlCarousel({
            autoPlay: 3000, //Set AutoPlay to 20 seconds
            items: 5,
            lazyLoad: true
        });

        $most_sold.owlCarousel({
            autoPlay: true,
            stopOnHover: true,
            navigation: true,
            goToFirstSpeed: 2000,
            slideSpeed: 1500,
            singleItem: true,
            autoHeight: true,
            pagination: false,
            transitionStyle: "goDown"
        });

        $last_items.owlCarousel({
            autoPlay: true,
            stopOnHover: true,
            navigation: true,
            goToFirstSpeed: 2000,
            slideSpeed: 1500,
            singleItem: true,
            autoHeight: true,
            pagination: false,
            transitionStyle: "goDown"
        });

        $lazy.unveil();
    };


    return {
        init: function () {
            initSlider();

        }

    };
}();
(function () {
    indexWeb.init();
}());